package com.vrsys.util;

import java.util.Random;

public class SID {
    private static final String NUMBERSTRING = "01235647688790784561434789068132498456013249841564984641346764305479756134674602545643134968"
            + "216546846132132500468431349846135010001005640456984156798104350330356468432132100005645632350200005435456132132132003578510"
            + "82030000165460001984113024000566890001654561321564981304941320359123038416198257798658496810325";
    private static final Random RANDOM = new Random();

    public static String nextId(int len) {
        StringBuilder sb = new StringBuilder(len);
        for( int i = 0; i < len; i++ ) 
           sb.append(NUMBERSTRING.charAt( RANDOM.nextInt(NUMBERSTRING.length()) ) );
        return sb.toString();
    }
}
